<?php
// 初始化变量及引入初始文件
$dbPathPart		= '';
$webPathPart	= '';
$jsPathPart		= '';

require(dirname(__FILE__) .'/check.php');
require(OT_ROOT .'inc/classTemplate.php');
//require(OT_ROOT .'inc/classTplIndex.php');

$nameAddi = AreaApp::WebNameAddi($mudi);
$cacheName = 'pc_w_'. $mudi . $nameAddi;

$judCache = false;
if ($retStr = Cache::CheckWebCache($cacheName,true)){ $judCache = true; }
if ($judCache == false || strlen($nameAddi) == 0){
	$tpl = new Template;

	$dataArr = AreaApp::WebDataArr($mudi);

	// 初始化公共变量
	$tpl->webTypeName	= 'w';	// $mudi
	$tpl->areaName		= $dataArr['theme'];
	$tpl->webTitle		= str_replace(array('{%标题附加%}','{%标题%}'),array('',$dataArr['theme'] . $dataArr['themeAddi']),$tplSysArr['TS_titleWeb']);
	$tpl->webTitleAddi	= '';
	$tpl->webKey		= strlen($dataArr['webKey']) > 0 ? $dataArr['webKey'] : $systemArr['SYS_webKey'];
	$tpl->webDesc		= strlen($dataArr['webDesc']) > 0 ? $dataArr['webDesc'] : $systemArr['SYS_webDesc'];
	$tpl->pointStr		= '&ensp;&gt;&ensp;'. (strlen($dataArr['pointStr']) > 0 ? $dataArr['pointStr'] : $dataArr['theme']);

	$tpl->Add('areaName',		$dataArr['theme']);		// 标题
	$tpl->Add('webContent',		$dataArr['content']);	// 内容


	// 解析页面
	$tpl->WebTop();
	$tpl->WebBottom();
	$tpl->WebSubRight();

	$retStr = $tpl->GetShow(strlen($dataArr['htmlFile']) > 0 ? $dataArr['htmlFile'] : 'web.html');

	Cache::WriteWebCache($cacheName,$retStr);
}
echo($retStr);

?>